<?php
/**
 * View header_menu - Registro (Phalconphp)
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    4-ago-2015
 * @package    Registro__Phalconphp_
 * @copyright  Copyright (c) 2015  Luigi Pastore
 */
?>
<nav class="navbar navbar-inverse" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-01">
            <span class="sr-only">Toggle navigation</span>
        </button>
        {{ link_to('index', 'Flat UI', 'class' : 'navbar-brand') }}
    </div>
    <div class="collapse navbar-collapse" id="navbar-collapse-01">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#fakelink">Products</a></li>
            <li>{{ link_to('admin', 'Backend') }}</li>
            <li class="btn-danger">{{ link_to('exceptions', 'Exceptions') }}</li>
        </ul>

        {% include "../../common/layouts/partials/auth_menu.phtml" %}

        <form class="navbar-form navbar-right" action="#" role="search">
            <div class="form-group">
                <div class="input-group">
                    <input class="form-control" id="navbarInput-01" type="search" placeholder="{{t._('search')}}">
                    <span class="input-group-btn">
                        <button type="submit" class="btn"><span class="fui-search"></span></button>
                    </span>
                </div>
            </div>
        </form>
        <ul class="nav navbar-right">
            <li>
                <div class="btn-group btn-group-xs" aria-label="Extra-small button group" role="group">
                    {{ link_to('index/switchlanguage/it-IT' ~ router.getRewriteUri(), t._('lang-ita'), 'class' : 'btn btn-default') }}
                </div>    
                <div class="btn-group btn-group-xs" aria-label="Extra-small button group" role="group">
                    {{ link_to('index/switchlanguage/en-EN' ~ router.getRewriteUri(), t._('lang-eng'), 'class' : 'btn btn-default') }}
                </div>    
                
            </li>
        </ul>

    </div><!-- /.navbar-collapse -->
</nav><!-- /navbar -->